export const HTTP_STATUS = {
  SUCCESS: 200,
  CLIENT_ERROR: 400,
  AUTHENTICATE: 401,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  SERVER_ERROR: 500,
  BAD_GATEWAY: 502,
  SERVICE_UNAVAILABLE: 503,
  GATEWAY_TIMEOUT: 504,
};

// promise status
export const SUCCESS = { success: "success" };
export const FAIL = { fail: "fail" };
export const COMPLETE = { complete: "complete" };

export const PROMISE_STATUS = {
  success: "success",
  fail: "fail",
  complete: "complete",
};

export const RESULT_STATUS = {
  SUCCESS: 0,
  SIGNATURE_FAILED: 1000, // 签名失败
};

export const levelArr = {
  G3LS: {
    index: 1,
    name: "三级特等",
    color: '#CFA473',
    textColor: '#FFF5E7'
  },
  G3LA: {
    index: 2,
    name: "三级甲等",
    color: '#CFA473',
    textColor: '#FFF5E7'
  },
  G3LB: {
    index: 3,
    name: "三级乙等",
    color: '#CFA473',
    textColor: '#FFF5E7'
  },
  G3LC: {
    index: 4,
    name: "三级丙等",
    color: '#CFA473',
    textColor: '#FFF5E7'
  },
  G2LA: {
    index: 5,
    name: "二级甲等",
    // color: '#EFFAF2',
    // textColor: '#61CA81'
    color: '#fff',
    textColor: '#CFA473',
    border: true
  },
  G2LB: {
    index: 6,
    name: "二级乙等",
    color: '#FFF5E7',
    textColor: '#CFA473',
    border: true
  },
  G2LC: {
    index: 7,
    name: "二级丙等",
    color: '#FFF5E7',
    textColor: '#CFA473',
    border: true
  },
  G1LA: {
    index: 8,
    name: "一级甲等",
    color: '#FFF5E7',
    textColor: '#CFA473',
    border: true
  },
  G1LB: {
    index: 9,
    name: "一级乙等",
    color: '#FFF5E7',
    textColor: '#CFA473',
    border: true
  },
  G1LC: {
    index: 10,
    name: "一级丙等",
    color: '#FFF5E7',
    textColor: '#CFA473',
    border: true
  },
  G0LN: {
    index: 11,
    name: "未定等",
    color: '#F2F4F6',
    textColor: '#67737D'
  },
  // unknown: {
  //   index: 11,
  //   name: "未定等",
  //   color: '#F0F6FF',
  //   textColor: '#6EA4FF'
  // },
};
export const areaTree = [
  {
    text: "全部地区",
    children: [
      {
        text: "全部地区",
        id: 1,
      },
    ],
  },
  {
    text: "广州",
    children: [
      {
        text: "全部地区",
        id: 1,
      },
      {
        text: "越秀区",
        id: 2,
      },
      {
        text: "荔湾区",
        id: 3,
      },
      {
        text: "海珠区",
        id: 4,
      },
      {
        text: "天河区",
        id: 5,
      },
      {
        text: "白云区",
        id: 6,
      },
      {
        text: "黄埔区",
        id: 7,
      },
      {
        text: "南沙区",
        id: 8,
      },
      {
        text: "番禺区",
        id: 9,
      },
      {
        text: "花都区",
        id: 10,
      },
      {
        text: "从化区",
        id: 11,
      },
      {
        text: "增城区",
        id: 12,
      },
    ],
  },
];
